package com.likan.chqjtgc.service;

import com.likan.chqjtgc.commons.PageVo;
import com.likan.chqjtgc.entity.BasicDict;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.core.metadata.IPage;

/**
 * <p>
 * 字典表 服务类
 * </p>
 *
 * @author lxh
 * @since 2021-01-10
 */
public interface BasicDictService extends IService<BasicDict> {

    /**
     * 查询字典表分页数据
     *
     * @param page
     * @return IPage<BasicDict>
     */
    IPage<BasicDict> findListByPage(PageVo<BasicDict> page);

    /**
     * 添加字典表
     *
     * @param basicDict 字典表
     * @return
     */
    Boolean add(BasicDict basicDict);

    /**
     * 删除字典表
     *
     * @param id 主键
     * @return JsonBean
     */
    Boolean delete(Long id);

    /**
     * 修改字典表
     *
     * @param basicDict 字典表
     * @return JsonBean
     */
    Boolean updateData(BasicDict basicDict);

    /**
     * id查询数据
     *
     * @param id id
     * @return JsonBean
     */
    BasicDict findById(Long id);
}
